package com.lg.happyfarmer.fragment;

import android.os.Bundle;

import com.hemaapp.hm_FrameWork.HemaNetTask;
import com.hemaapp.hm_FrameWork.result.HemaBaseResult;
import com.lg.happyfarmer.R;
import com.lg.happyfarmer.adapter.SelectAdapter;
import com.lg.happyfarmer.base.BaseFragment;
import com.lg.happyfarmer.bean.Bank;
import com.lg.happyfarmer.view.MyListView;

import java.util.ArrayList;

/**
 * 易选
 * Created by Torres on 2018/4/25.
 */

public class SelectChildFragment extends BaseFragment {

    private int position;
    public SelectChildFragment() {
        super();
    }
    private SelectAdapter adapter;
    private ArrayList<Bank> banks=new ArrayList<>();
    public static SelectChildFragment getInstance(int position) {
        SelectChildFragment fragment = new SelectChildFragment();
        fragment.position = position;
        return fragment;
    }

    MyListView listView;
    public void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_listview);
        super.onCreate(savedInstanceState);
        banks.add(new Bank());
        banks.add(new Bank());
        banks.add(new Bank());
        adapter=new SelectAdapter(getActivity(),banks);
        listView.setAdapter(adapter);
    }
    @Override
    protected void callBeforeDataBack(HemaNetTask hemaNetTask) {

    }

    @Override
    protected void callAfterDataBack(HemaNetTask hemaNetTask) {

    }

    @Override
    protected void callBackForServerSuccess(HemaNetTask hemaNetTask, HemaBaseResult hemaBaseResult) {

    }

    @Override
    protected void callBackForServerFailed(HemaNetTask hemaNetTask, HemaBaseResult hemaBaseResult) {

    }

    @Override
    protected void callBackForGetDataFailed(HemaNetTask hemaNetTask, int i) {

    }

    @Override
    protected void findView() {
        listView= (MyListView) findViewById(R.id.listView);
    }

    @Override
    protected void setListener() {
    }
}
